package com.z6school.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.z6school.manage.common.pojo.Nodes;
import com.z6school.manage.common.pojo.UserMenuVo;
import com.z6school.manage.po.Menus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface MenusMapper extends BaseMapper<Menus> {
    List<Map<String,Object>> doFindObject();

    int doDeleteObject(Integer id);

    int getChildCount(Integer id);

    List<Nodes> findZtreeMenuNodes();

    int insertObject(Menus entity);

    int updateObject(Menus entity);

    List<String> findPermissions(@Param("menuIds") List<Integer> menuIds);

    List<UserMenuVo> findMenusByIds(@Param("menuIds")List<Integer> menuIds);


}
